<% @page_title = "多背一公斤 | 修改密码" %>

<% content_for(:sidebar) do -%>
  <h2>其它功能</h2>
  <p><a href="/setting">修改个人资料</a></p>
<% end -%>

<h1>修改密码</h1>
<div style="margin-left:20px;">
  <% form_for :user, :url => updatepassword_user_path(@user), :html => {:method => 'put'} do |f| -%>
    <p><label for="old_password">旧密码</label><br />
      <%= f.password_field :old_password %></p>
    <p><label for="password">新密码</label><br />
      <%= f.password_field :password %></p>
    <p><label for="password_confirmation">密码确认</label><br />
      <%= f.password_field :password_confirmation %></p>
      
    <%= submit_tag "修 改" %> 或 <a href="/setting">返回个人设置</a>
  <% end -%>
</div>